package com.my.test.java.two.testj;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class HConnection extends AbsConnection{
	
	private Connection conn;
	private String sql;
	
	public HConnection(){}
	public HConnection(Connection conn){
		this.conn = conn;
	}
	public HConnection(Connection conn,String sql){
		this.conn = conn;
		this.sql = sql;
	}
	
	public PreparedStatement prepareStatement(String sql) throws SQLException {
		HPreparedstatement hPre = new HPreparedstatement(conn,sql);
		return hPre;
	}
}
